﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Principal.Master" AutoEventWireup="true" CodeBehind="DefinirPerfis.aspx.cs" Inherits="SeguradoraIA.Forms.DefinirPerfis" %>

<%@ Register Src="~/UserControl/ucBotoesPadrao.ascx" TagName="ucBotoesPadrao" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="uppMaster" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="200px">
                        &nbsp;&nbsp;&nbsp;
                    </td>
                    <td width="80%">
                    </td>
                    <td width="10%">
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="top" colspan="3">
                        <asp:Label runat="server" ID="lblTitulo" class="titulo_pagina" Text="Definir Perfis"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" colspan="altura20">
                        <br />
                        <br />
                        <br />
                    </td>
                </tr>
                <asp:Panel ID="pnlComPerfis" runat="server" Visible="false">
                    <tr>
                        <td>
                        </td>
                        <td colspan="2">
                            <div style="width: 850px; overflow-x: scroll">
                                <asp:GridView ID="gvPerfis" DataKeyNames="IdPerfil" runat="server" SkinID="grdSemLargura" Width="1400" AutoGenerateColumns="False" OnPageIndexChanging="gvPerfis_PageIndexChanging">
                                    <Columns>
                                        <asp:TemplateField HeaderText="Resultado Esperado" SortExpression="IdResultadoEsperado">
                                            <ItemTemplate>
                                                <asp:DropDownList ID="ddlResultadoEsperado" runat="server" SelectedValue='<%# Bind("IdResultadoEsperado") %>'>
                                                    <asp:ListItem Value="1" Text="Alto Risco" />
                                                    <asp:ListItem Value="2" Text="Baixo Risco" />
                                                    <asp:ListItem Value="3" Text="Selecione" />
                                                    <asp:ListItem Value="4" Text="Calculado" />
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Idade" SortExpression="IdIdade">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("Idade.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Valor Carro" SortExpression="IdValorCarro">
                                            <ItemTemplate>
                                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("ValorCarro.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Bairro" SortExpression="IdBairro">
                                            <ItemTemplate>
                                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("Bairro.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Sinistro" SortExpression="IdSinistro">
                                            <ItemTemplate>
                                                <asp:Label ID="Label6" runat="server" Text='<%# Bind("Sinistro.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tempo Habilitação" SortExpression="IdTempoHabilitacao">
                                            <ItemTemplate>
                                                <asp:Label ID="Label7" runat="server" Text='<%# Bind("TempoHabilitacao.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Profissão" SortExpression="IdProfissao">
                                            <ItemTemplate>
                                                <asp:Label ID="Label8" runat="server" Text='<%# Bind("Profissao.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Grau Instrução" SortExpression="IdGrauInstrucao">
                                            <ItemTemplate>
                                                <asp:Label ID="Label9" runat="server" Text='<%# Bind("GrauInstrucao.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tipo Carro" SortExpression="IdTipoCarro">
                                            <ItemTemplate>
                                                <asp:Label ID="Label10" runat="server" Text='<%# Bind("TipoCarro.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Marca Carro" SortExpression="IdMarcaCarro">
                                            <ItemTemplate>
                                                <asp:Label ID="Label11" runat="server" Text='<%# Bind("MarcaCarro.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Curso Formação" SortExpression="IdCursoFormacao">
                                            <ItemTemplate>
                                                <asp:Label ID="Label12" runat="server" Text='<%# Bind("CursoFormacao.Descricao") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <br />
                                <br />
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" class="altura50">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td align="center">
                            <uc1:ucBotoesPadrao ID="ucBotoesPadrao" runat="server" />
                        </td>
                    </tr>
                </asp:Panel>
                <asp:Panel ID="pnlSemPerfis" runat="server" Visible="false">
                    <tr>
                        <td></td>
                        <td align="center">Não existem perfis cadastrados</td>
                    </tr>
                </asp:Panel>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
